//=============================================================================
// USCM Sidearm Pickup.
//=============================================================================
class SidearmPickup extends KFWeaponPickup;

#exec obj load file="AliensKFWeapons_A.ukx"

/*
function ShowDeagleInfo(Canvas C)
{
  C.SetPos((C.SizeX - C.SizeY) / 2,0);
  C.DrawTile( Texture'KillingfloorHUD.ClassMenu.Deagle', C.SizeY, C.SizeY, 0.0, 0.0, 256, 256);
}
*/

function inventory SpawnCopy( pawn Other )
{
	local Inventory I;

	For( I=Other.Inventory; I!=None; I=I.Inventory )
	{
		if( Deagle(I)!=None )
		{
			if( Inventory!=None )
				Inventory.Destroy();
			InventoryType = Class'DualDeagle';
			I.Destroyed();
			I.Destroy();
			Return Super.SpawnCopy(Other);
		}
	}
	InventoryType = Default.InventoryType;
	Return Super.SpawnCopy(Other);
}

defaultproperties
{
	Weight=4.000000
	cost=500
	BuyClipSize=7
	PowerValue=65
	SpeedValue=35
	RangeValue=60
	AmmoCost=15
	Description="50 Cal AE handgun. A powerful personal choice for personal defense."
	ItemName="USCM Sidearm"
	ItemShortName="Sidearm"
	AmmoItemName=".300 JHP Ammo"
	showMesh=SkeletalMesh'AliensKFWeapons_A.sidearm_3rd'
	AmmoMesh=none
	InventoryType=Class'AliensKFWeapons.Sidearm'
	PickupMessage="You got the USCM Sidearm."
	PickupForce="AssaultRiflePickup"
	StaticMesh=StaticMesh'AliensKFWeapons_SM.sidearm_pickup'
	DrawScale=1.000000
	CollisionHeight=5.000000
	PickupSound=Sound'KF_HandcannonSnd.50AE_Pickup'
	EquipmentCategoryID=1
	CorrespondingPerkIndex=0
}
